const router = require('koa-router')()
const UsersController = require('../controller/UsersController')

router.get('/users/list', UsersController.list.bind(UsersController))
router.get('/users/detail', UsersController.detail.bind(UsersController))
router.post('/users/add', UsersController.add.bind(UsersController))
router.post('/users/update', UsersController.update.bind(UsersController))
router.post('/users/delete', UsersController.delete.bind(UsersController))
router.post('/login', UsersController.login.bind(UsersController))

module.exports = router
